//
//  Define.h
//  IntegralWall
//
//  Created by 小焘无量 on 2022/8/12.
//

#ifndef Define_h
#define Define_h

//MARK: -  枚举
typedef enum{
    PayTypeWeichat,
    PayTypeAli,
} BindPayType;



//MARK: - key

#define kUMShareKey @"632db0a905844627b5533cd9"

#define kWeiXinLinks @"https://cdn.img.ttzhapp.com/system/"
#define kWeiChatAppId @"wxebbcad16beaf381d"
#define kWeiChatSecret @"2b01089fc46075eca596b04b5e25f594"

#define NETPageSize  @"10"

//MARK: - 请求返回数据

#define NET_RESULT_CODE  [[NSString stringWithFormat:@"%@",responseObject[@"code"]] integerValue]
#define NET_SHOW_MSG     [MBProgressHUD showMessage:[NSString stringWithFormat:@"%@",responseObject[@"msg"]]];
#define NET_SHOW_ERROR   [MBProgressHUD showMessage:@"网络请求失败"];

// placeholder
#define PlaceholderImgName @"icon_header_default"


//MARK: - NSUserDefault  key
#define kHiddenTaskNoticeView @"kHiddenTaskNoticeView"

//MARK: - Tag


//MARK: - NotificationName
/// 更新登录状态
#define NotifiName_LoginStateChange @"NotifiName_LoginStateChange"
#define NotifiName_MemberStateChange @"NotifiName_MemberStateChange"// 会员状态改变
#define NotifiNameWeichatCode @"NotifiNameWeichatCode"
#define NotifiNameAliPay    @"NotifiNameAliPay"// 阿里支付回调
//#define NotifiNameShareSuccess @"NotifiNameShareSuccess"// 分享成功

// 支付状态
#define UserNotificationAlipayOrWechatSuccess   @"UserNotificationAlipayOrWechatSuccess"
#define UserNotificationAlipayOrWechatFail      @"UserNotificationAlipayOrWechatFail"


//MARK: - URL
#define BASEURL @"https://www.dizhi0311.cn/api"

#define URL_ImgUpload @"/file/multiUpload"// （文件上传）图片上传


/* ************************************ 首页 ************************************ */
#define URL_InstockList @"/stock/instock/list" // 首页数据 分页

#define URL_InquiriesTimes @"/blade-member/member/inquiries"// 询价次数

#define URL_Heartbeat @"/blade-member/member/health"//心跳接口

/* ************************************ 个人中心 ************************************ */
#define URL_GetUserInfo @"/blade-member/member/info"

/* ************************************ 登录 ************************************ */
#define URL_SendLoginCode @"/blade-auth/app/send/login_code" // 登录发送验证码
#define URL_Login @"/blade-auth/app/oauth/token" // 验证码登录、刷新token
#define URL_LoutOut @"/blade-auth/oauth/logout"// 退出登录





#endif /* Define_h */
